import {BrowserModule} from '@angular/platform-browser';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {NgModule} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {HttpModule} from '@angular/http';
import {NgZorroAntdModule} from 'ng-zorro-antd';
import {RouterModule} from '@angular/router';

import {appRoutes} from './app.routes';
import {LayoutComponent} from './base/layout/layout.component';
import {AppComponent} from './app.component';
import {P404Component} from "./base/views/erro/404.component";
import {P500Component} from "./base/views/erro/500.component";
import {MenuService} from "./base/services/menu.service";
import {RecursiveMenuComponent} from './base/components/recursive-menu/recursive-menu.component';

@NgModule({
  declarations: [
    LayoutComponent,
    AppComponent,
    P404Component,
    P500Component,
    RecursiveMenuComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    BrowserAnimationsModule,
    NgZorroAntdModule.forRoot(),
    RouterModule.forRoot(appRoutes, {useHash: true})
  ],
  exports: [
    NgZorroAntdModule
  ],
  providers: [MenuService],
  bootstrap: [AppComponent]
})
export class AppModule {
}
